<template>

    <el-row type="flex" class="login">
      <el-col :span="6">
        <h1 class="title">VUE-CUSTOM</h1>
        <el-form :model="loginForm" :rules="rules" status-icon ref="ruleForm" class="demo-ruleForm">
          <el-form-item prop="username">
            <el-input
              v-model="loginForm.username"
              autocomplete="off"
              placeholder="用户名"
              prefix-icon="el-icon-user-solid"
            ></el-input>
          </el-form-item>
          <el-form-item prop="password">
            <el-input
              type="password"
              v-model="loginForm.password"
              autocomplete="off"
              placeholder="请输入密码"
              prefix-icon="el-icon-lock"
            ></el-input>
          </el-form-item>
          <el-form-item>
            <el-button type="primary" @click="login" class="login-btn">登录</el-button>
          </el-form-item>
        </el-form>
      </el-col>
    </el-row>
</template>

<script>
export default {
  name: 'Login',
  data () {
    return {
      loginForm: {
        username: '',
        password: ''
      }
    }
  },
  methods: {
    login(){}
  }
}
</script>
<style scoped>
.login-container{
  width: 300px;
  position: center;
}
</style>
